<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class ApiProjectTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('api_project', function (Blueprint $blueprint) {
            $blueprint->increments('project_id')->comment('项目id');
            $blueprint->string('project_name')->comment('项目标题');
            $blueprint->string('comment')->comment('项目说明');
            $blueprint->softDeletes();
            $blueprint->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('api_project');
    }
}
